package cn.devzyh.oms.coms.api.shipment.entity;

import cn.devzyh.oms.common.mybatis.domain.BaseModel;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

/**
 * 出库单明细
 *
 * @author devzyh
 * @date 2024-03-07
 */
@TableName("shipment_detail")
@Data
@EqualsAndHashCode(callSuper = true)
public class ShipmentDetail extends BaseModel<ShipmentDetail> {

	/**
	 * ID
	 */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
	
	/**
	 * 单头ID
	 */
    private Long shipmentId;
	
	/**
	 * SKU编码
	 */
    private String skuCode;
	
	/**
	 * SKU名称
	 */
    private String skuName;
	
	/**
	 * 来源行号
	 */
    private String sourceLineCode;
	
	/**
	 * 购买数量
	 */
    private Integer quantity;
	
	/**
	 * 出库数量
	 */
    private Integer shipmentQuantity;
	
	/**
	 * 关联库存
	 */
    private Long stockId;
	
	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
    private String createBy;
	
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
	
	/**
	 * 修改人
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;
	
	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
	
	/**
	 * 删除标记
	 */
    @TableLogic
	@TableField(fill = FieldFill.INSERT)
    private String delFlag;
	
}